﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using X.PagedList;
using XbsWebAPI.Application.CampRoom.Room.Dtos;
using XbsWebAPI.Application.QueryModel;
using XbsWebAPI.EntityFrameworkCore.Entities;

namespace XbsWebAPI.Application
{
    /// <summary>
    /// 营位应用服务
    /// </summary>
    public interface IRoomAppService
    {
        public Task<ResultDto<string>> CreateRoomAsync(CreateRoomDto model);

        public ResultDto<GetRoomDto> GetRoomById(Guid id);

        public Task<ResultDto<string>> RemoveRoomAsync(Guid id);

        public ResultDto<PageListDto<ListRoomDto>> GetPagedList(QueryRoom query);

        public Task<ResultDto<string>> EditRoomAsync(EditRoomDto model);

        public Task<ResultDto<string>> CheckRoomEnable(Guid id, bool isEnable);
    }
}
